import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index/Index'
import Classify1 from '@/pages/classify1/Classify1'
import Classify2 from '@/pages/classify2/Classify2'
import Classify3 from '@/pages/classify3/Classify3'
import Classify4 from '@/pages/classify4/classify4'
import Classify5 from '@/pages/classify5/Classify5'
import Register from '@/pages/register/Register'
import Login from '@/pages/login/Login'
import LoginFail from '@/pages/login/LoginFail'
import PrivateIndex from '@/pages/privatePage/PrivateIndex'
import Admin from '@/pages/admin/Admin'
import AdminLogin from '@/pages/adminLogin/AdminLogin'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Classify1',
      name: 'Classify1',
      component: Classify1
    },
    {
      path: '/Classify2',
      name: 'Classify2',
      component: Classify2
    },
    {
      path: '/Classify3',
      name: 'Classify3',
      component: Classify3
    },
    {
      path: '/Classify4',
      name: 'Classify4',
      component: Classify4
    },
    {
      path: '/Classify5',
      name: 'Classify5',
      component: Classify5
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/Login',
      name: 'LoginIndex',
      component: Login
    },
    {
      path: '/LoginFail',
      name: 'LoginFail',
      component: LoginFail
    },
    {
      path: '/PrivateIndex',
      name: 'PrivateIndex',
      component: PrivateIndex
    },
    {
      path: '/Admin',
      name: 'Admin',
      component: Admin
    },
    {
      path: '/AdminLogin',
      name: 'AdminLogin',
      component: AdminLogin
    }
  ]
})
